package com.bocai.common.exception;

public enum CodeMnume {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败异常"),
    PRODUCT_UP_ERROR(6666,"商品上架错误"),
    PHONE_CODE_ERROR(2222,"验证码频率太高,请稍后在式"),
    EMAIL_ERROR(1111,"邮箱不是孙静波的"),
    USER_NMAE_ERROR(3333,"用户名被占用异常"),
    USER_LOGIN_ERROR(1234,"登录失败");

    private Integer code;

    private String message;

    CodeMnume(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
